Release 10.1A: OpenEdge Data Management:
Database Administration
PRODB utility
Creates a new OpenEdge database.
Syntax
prodb [new-db-name][empty | sports |isports |sports2000 |old-db-name|demo ][-newinstance]
Parameters
new-db-nameSpecifies the name of the database you are creating. If you specify a directory without a filename, PRODB returns an error.
The value you specify can be any combination of letters and numbers, starting with a letter. Do not use Progress 4GL keywords or special characters, such as commas or semicolons. The maximum length of
new-db-namevaries, depending on the underlying operating system. For specific limits, see Chapter 2, " OpenEdge RDBMS Limits."emptySpecifies that the new database is a copy of the
emptydatabase located in the OpenEdge install directory. PRODB knows where to locate theemptydatabase, so you do not need to provide a pathname to it.In addition to the default
emptydatabase, PRODB allows you to create other empty database structures with different block sizes:
- empty (default).
- empty1 (1K block size).
- empty2 (2K block size).
- empty4 (4K block size).
- empty8 (8K block size).
To create these
emptydatabase structures, however, you must specify the pathname to where OpenEdge is installed, or use the DLC environment variable. For example, use the following command:
sportsSpecifies that the new database is a copy of the Sports database.
isportsSpecifies that the new database is a copy of the international Sports database.
sports2000Specifies that the new database is a copy of the Sports2000 database.
old-db-nameSpecifies the name of the database you are copying.
demoSpecifies that the new database is a copy of the demo database.
-newinstanceSpecifies that a new GUID be created for the target database.
PRODB creates a new database from a specified source database. PRODB creates a new database using the structure of the source database and places all of the extents in the current working directory. You can use PRODB to make a copy of any of the demonstration or empty databases.
Notes
- You can also create a new database from the Data Dictionary.
- When you use the PRODB utility and give the copy a new name, you cannot run the original r-code against the new database. This is because PRODB saves the database with the r-code. To run the r-code against the new database, use the Logical Database Name (-
ld) startup parameter and use the original database name.- A new database must contain the same physical structure as the source. For example, it must have the same number of storage areas, records, blocks, and blocksize.
- Databases from releases prior to 10.1A do not have the schema support for a database GUID. When copying one of these older databases, the GUID field will not be added to the database. If the
-newinstancequalifier is used, it is silently ignored. Use PROUTIL UPDATESCHEMA to determine if your schema is up to date. For more information, see the "PROUTIL UPDATESCHEMA qualifier" section.- Databases supplied in the DLC directory for this release, contain the field for a database GUID, but the field contains the Unknown value (
?) rather than a valid GUID. When PRODB is used to copy one of these databases, the GUID field of the target database is automatically set.- PRODB supports the use of internationalization startup parameters such as
-cpinternalcodepageand-cpstreamcodepage. See Chapter 18, "Database Startup Parameters," for a description of each database-related internationalization startup parameter.- When issuing the PRODB command, specify the target and source database names (they are positional) before specifying an internationalization startup parameter such as
-cpinternal.- PRODB also supports the parameter file
(-pf) startup parameter that contains a list of valid startup parameters.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |